package cn.agiledata.bank.transaction.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

/**
 * 账户间交易Form
 * 
 * @author maxianbo
 * 
 */
public class InnerTransactForm extends MultiStepForm {

    private String transId;

    private String amount;

    private boolean assured;

    private String commodity;

    private String purpose;

    private String remark;

    public InnerTransactForm() {
        this.transId = null;
        this.amount = "";
        this.assured = false;
        this.commodity = "";
        this.purpose = "";
        this.remark = "";
    }

    public String getTransId() {
        return this.transId;
    }

    public void setTransId(String transId) {
        this.transId = transId;
    }

    public String getAmount() {
        return this.amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public boolean isAssured() {
        return this.assured;
    }

    public void setAssured(boolean assured) {
        this.assured = assured;
    }

    public String getCommodity() {
        return this.commodity;
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }

    public String getPurpose() {
        return this.purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        if (isResetable()) {
            this.transId = null;
            this.amount = "";
            this.assured = false;
            this.commodity = "";
            this.purpose = "";
            this.remark = "";
        }
    }
}
